<template>
  <view class="third-shop-detail">
    <web-view :src="url"></web-view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        url:''
      }
    },
    methods: {
      
    },
    onShow() {
      const routes = getCurrentPages()
      const params = routes[routes.length - 1].options
      let url = decodeURIComponent(params.url)
      const src = decodeURIComponent(params.url)
      const token = uni.getStorageSync('token')
      if(params.fromFlag == 'order_list'){
        uni.redirectTo({
          url:'/minePackage/order-list'
        })
      }
      if(token){
        url = decodeURIComponent(params.url + `${decodeURIComponent(params.url).includes('?')?'&':'?'}token=${token}&channel=${this.$channel}&t=${Date.now()}`)
      }
      this.url = url
    }
  }
</script>

<style>

</style>
